#include <QtGui/QApplication>
#include <QTextCodec>
#include <QSplashScreen>

#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));

    QCoreApplication::setOrganizationName("MM");
    QCoreApplication::setApplicationName("tapertek_calc");

    QPixmap pixmap(":/images/icons/loadlogo.bmp");
    QSplashScreen *splash = new QSplashScreen(pixmap);
    splash->show();
    a.processEvents();

    MainWindow w;
    w.showMaximized();
    splash->finish(&w);
    return a.exec();
}
